<%@page import="com.vizaysoni.Student"%>
<%@page import="com.vizaysoni.dao.StudentDAO"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Update</title>
</head>
<body>

<h3 align="center">  Update </h3>
<hr />

<form action="UpdateServlet" method="post">

<table align="center">

<input type="hidden" name="key" value="${student.key.id}"/>

<tr>
	<th align="right">  Name:   </th>
	<td align="left">  <input type="text" name="name" value="${student.name}"/>  </td>
</tr>

<tr>
	<th align="right">  Email:  </th>
	<td align="left">  <input type="text" name="email" value="${student.emailId}"/>  </td>
</tr>

<tr>
	<th align="right"> RollNo:   </th>
	<td align="left">  <input type="text" name="rollNo" value="${student.rollNo}"/>  </td>
</tr>

<tr>
	<th align="right">  Age:  </th>
	<td align="left">  <input type="text" name="age" value="${student.age}"/>  </td>
</tr>

<tr>
	<td align="center" colspan="1">  <input type="submit" value="Update"/>  </td>
	<td >  <input type="button" value="Delete" onclick="document.location='DeleteServlet?key=${student.key.id}'"/>  </td>
</tr>

</table>

</form>

<HR />


</body>
</html>